
public class TAFactory {
	
	public TAWorker getTA (String tatype)
	{
		TAWorker tw= null;
		if (tatype.compareTo("device")==0)
		{
			tw = new DeviceTAWorker();
			
		}
		else if (tatype.compareTo("ps")==0)
		{
			tw = new PumpStationTAWorker();
			
		}
		else if (tatype.compareTo("simulator")==0)
		{
			tw = new SimulatorTAWorker();
			
		}
		else if (tatype.compareTo("sdlps")==0)
		{
			tw = new SDLPumpStationTAWorker();
			
		}
		else if (tatype.compareTo("lzlps")==0)
		{
			tw = new LZLPumpStationTAWorker();
			
		}
		return tw;
	}

}
